<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection" />
    <meta content="emai=no" name="format-detection" />
    <link rel="stylesheet" type="text/css" href="/css/common.css" />
    <link rel="stylesheet" type="text/css" href="/css/order.css" />
    <title>订单详情</title>
</head>
<body>
    <div class="wrapper">
        <header>
            <!--<div class="flex-wrapper flex-pack-justify flex-align-center">
                <p><span class="icon i-order"></span>检验完成</p>
                <p><span class="btn-action" data-href="reportdetail.html">查看报告</span></p>
            </div>-->
            <!--<div class="flex-wrapper flex-pack-justify flex-align-center">
                <p><span class="icon i-order"></span>已发货</p>
                <p><span class="btn-action" data-href="">确认收到取样盒</span></p>
            </div>-->
            <div class="flex-wrapper flex-pack-justify flex-align-center">
                <p><span class="icon i-order"></span><?php echo $order['status_name']?></p>
                <?php if($order['shipping_status'] == 2):?>
                <p><span class="btn-action" data-href="/order/bind?order_id=<?php echo $order['order_id']?>&goods_sn=<?php echo $order['goods_sn']?>">绑定样本</span></p>
                <?php endif;?>
            </div>
        </header>
        <div class="content-wrapper user-info flex-wrapper flex-align-center">
            <div class="i-location">
                <span class="icon-plus i-location"></span>
            </div>
            <div class="flex-1 clear">
                <p><span class="s-right"><?php echo $order['tel']?></span>收货人：<?php echo $order['consignee']?></p>
                <p>收货地址：<?php echo $order['address']?></p>
            </div>
        </div>
        <div class="content-wrapper good-info">
            <section class="detail flex-wrapper flex-align-center">
                <div class="thumbnail">
                    <img src="<?php if($order['goods_thumb']) echo $shop_base_url . $order['goods_thumb']?> " />
                </div>
                <div class="title flex-1">
                    <?php echo $order['goods_name']?>
                </div>
                <div class="price">
                    <span class="unit-price"><span>&#165;</span><?php echo $order['goods_price']?></span>
                    <span class="count">x <?php echo $order['goods_number']?></span>
                </div>
            </section>
            <section class="total">
                <label>总价：</label><span class="special"><span>&#165;</span><?php echo $order['order_amount']?></span>
            </section>
        </div>
        <div class="content-wrapper order-info">
            <p><label>订单编号：</label><?php echo $order['order_sn']?><br /></p>
            <p><label>创建时间：</label><?php echo date('Y-m-d H:i:s', $order['add_time'])?></p>
            <?php if($order['pay_time'] > 0):?><p><label>付款时间：</label><?php echo date('Y-m-d H:i:s', $order['pay_time'])?></p><?php endif?>
            <?php if($order['shipping_time'] > 0):?><p><label>发货时间：</label><?php echo date('Y-m-d H:i:s', $order['shipping_time'])?></p><?php endif?>
        </div>
    </div>
    <script src="/js/zepto-1.1.6.js" type="text/javascript"></script>
    <script src="/js/common.js" type="text/javascript"></script>
</body>
</html>
